const container = document.getElementById('multiplicationTable');
for (let i = 1; i <= 9; i++) {
    let row = '';
    for (let j = 1; j <= i; j++) {
        const product = i * j;
        row += `<div class="cell">${i} × ${j} = ${product}</div>`;
    }
    container.innerHTML += `<div>${row}</div>`;
}